package com.ruoyi.mark.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mark.mapper.CfMaintainImageMapper;
import com.ruoyi.mark.domain.CfMaintainImage;
import com.ruoyi.mark.service.ICfMaintainImageService;

/**
 * 维修照片表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-04
 */
@Service
public class CfMaintainImageServiceImpl implements ICfMaintainImageService 
{
    @Autowired
    private CfMaintainImageMapper cfMaintainImageMapper;

    /**
     * 查询维修照片表
     * 
     * @param id 维修照片表主键
     * @return 维修照片表
     */
    @Override
    public CfMaintainImage selectCfMaintainImageById(Long id)
    {
        return cfMaintainImageMapper.selectCfMaintainImageById(id);
    }

    /**
     * 查询维修照片表列表
     * 
     * @param cfMaintainImage 维修照片表
     * @return 维修照片表
     */
    @Override
    public List<CfMaintainImage> selectCfMaintainImageList(CfMaintainImage cfMaintainImage)
    {
        return cfMaintainImageMapper.selectCfMaintainImageList(cfMaintainImage);
    }

    /**
     * 新增维修照片表
     * 
     * @param cfMaintainImage 维修照片表
     * @return 结果
     */
    @Override
    public int insertCfMaintainImage(CfMaintainImage cfMaintainImage)
    {
        return cfMaintainImageMapper.insertCfMaintainImage(cfMaintainImage);
    }

    /**
     * 修改维修照片表
     * 
     * @param cfMaintainImage 维修照片表
     * @return 结果
     */
    @Override
    public int updateCfMaintainImage(CfMaintainImage cfMaintainImage)
    {
        return cfMaintainImageMapper.updateCfMaintainImage(cfMaintainImage);
    }

    /**
     * 批量删除维修照片表
     * 
     * @param ids 需要删除的维修照片表主键
     * @return 结果
     */
    @Override
    public int deleteCfMaintainImageByIds(Long[] ids)
    {
        return cfMaintainImageMapper.deleteCfMaintainImageByIds(ids);
    }

    /**
     * 删除维修照片表信息
     * 
     * @param id 维修照片表主键
     * @return 结果
     */
    @Override
    public int deleteCfMaintainImageById(Long id)
    {
        return cfMaintainImageMapper.deleteCfMaintainImageById(id);
    }
}
